.class public abstract Les/w40;
.super Ljcifs/util/transport/Response;
.source "Smb1MessageBlock.java"

# interfaces
.implements Ljcifs/util/transport/Request;
.implements Les/v40;


# static fields
.field static m:Ljcifs/util/LogStream;

.field static final n:[B


# instance fields
.field a:B

.field b:B

.field c:I

.field d:I

.field e:I

.field f:I

.field g:I

.field h:I

.field i:I

.field j:I

.field k:I

.field l:I


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .line 1
    invoke-static {}, Ljcifs/util/LogStream;->getInstance()Ljcifs/util/LogStream;

    move-result-object v0

    sput-object v0, Les/w40;->m:Ljcifs/util/LogStream;

    const/16 v0, 0x18

    new-array v0, v0, [B

    .line 2
    fill-array-data v0, :array_0

    sput-object v0, Les/w40;->n:[B

    return-void

    :array_0
    .array-data 1
        -0x1t
        0x53t
        0x4dt
        0x42t
        0x0t
        0x0t
        0x0t
        0x0t
        0x0t
        0x0t
        0x0t
        0x0t
        0x0t
        0x0t
        0x0t
        0x0t
        0x0t
        0x0t
        0x0t
        0x0t
        0x0t
        0x0t
        0x0t
        0x0t
    .end array-data
.end method

.method constructor <init>()V
    .locals 1

    .line 1
    invoke-direct {p0}, Ljcifs/util/transport/Response;-><init>()V

    const/16 v0, 0x18

    .line 2
    iput-byte v0, p0, Les/w40;->b:B

    .line 3
    sget v0, Les/v40;->f0:I

    iput v0, p0, Les/w40;->g:I

    return-void
.end method

.method static readInt2([BI)I
    .locals 1

    .line 1
    aget-byte v0, p0, p1

    and-int/lit16 v0, v0, 0xff

    add-int/lit8 p1, p1, 0x1

    aget-byte p0, p0, p1

    and-int/lit16 p0, p0, 0xff

    shl-int/lit8 p0, p0, 0x8

    add-int/2addr v0, p0

    return v0
.end method

.method static readInt4([BI)I
    .locals 2

    .line 1
    aget-byte v0, p0, p1

    and-int/lit16 v0, v0, 0xff

    add-int/lit8 v1, p1, 0x1

    aget-byte v1, p0, v1

    and-int/lit16 v1, v1, 0xff

    shl-int/lit8 v1, v1, 0x8

    add-int/2addr v0, v1

    add-int/lit8 v1, p1, 0x2

    aget-byte v1, p0, v1

    and-int/lit16 v1, v1, 0xff

    shl-int/lit8 v1, v1, 0x10

    add-int/2addr v0, v1

    add-int/lit8 p1, p1, 0x3

    aget-byte p0, p0, p1

    and-int/lit16 p0, p0, 0xff

    shl-int/lit8 p0, p0, 0x18

    add-int/2addr v0, p0

    return v0
.end method

.method static readTime([BI)J
    .locals 4

    .line 1
    invoke-static {p0, p1}, Les/w40;->readInt4([BI)I

    move-result v0

    add-int/lit8 p1, p1, 0x4

    .line 2
    invoke-static {p0, p1}, Les/w40;->readInt4([BI)I

    move-result p0

    int-to-long p0, p0

    const/16 v1, 0x20

    shl-long/2addr p0, v1

    int-to-long v0, v0

    const-wide v2, 0xffffffffL

    and-long/2addr v0, v2

    or-long/2addr p0, v0

    const-wide/16 v0, 0x2710

    .line 3
    div-long/2addr p0, v0

    const-wide v0, 0xa9730b66800L

    sub-long/2addr p0, v0

    return-wide p0
.end method

.method static writeInt2(J[BI)V
    .locals 1

    long-to-int v0, p0

    int-to-byte v0, v0

    .line 1
    aput-byte v0, p2, p3

    add-int/lit8 p3, p3, 0x1

    const/16 v0, 0x8

    shr-long/2addr p0, v0

    long-to-int p1, p0

    int-to-byte p0, p1

    .line 2
    aput-byte p0, p2, p3

    return-void
.end method


# virtual methods
.method public a()I
    .locals 1

    .line 1
    iget v0, p0, Les/w40;->d:I

    return v0
.end method

.method decode([BI)I
    .locals 6

    .line 1
    invoke-virtual {p0, p1, p2}, Les/w40;->readHeaderWireFormat([BI)I

    move-result v0

    add-int/2addr v0, p2

    add-int/lit8 v1, v0, 0x1

    .line 2
    aget-byte v0, p1, v0

    iput v0, p0, Les/w40;->j:I

    const/4 v2, 0x5

    if-eqz v0, :cond_1

    .line 3
    invoke-virtual {p0, p1, v1}, Les/w40;->readParameterWordsWireFormat([BI)I

    move-result v0

    iget v3, p0, Les/w40;->j:I

    mul-int/lit8 v3, v3, 0x2

    if-eq v0, v3, :cond_0

    .line 4
    sget v3, Ljcifs/util/LogStream;->level:I

    if-lt v3, v2, :cond_0

    .line 5
    sget-object v3, Les/w40;->m:Ljcifs/util/LogStream;

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "wordCount * 2="

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v5, p0, Les/w40;->j:I

    mul-int/lit8 v5, v5, 0x2

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v5, " but readParameterWordsWireFormat returned "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v3, v0}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 6
    :cond_0
    iget v0, p0, Les/w40;->j:I

    mul-int/lit8 v0, v0, 0x2

    add-int/2addr v1, v0

    .line 7
    :cond_1
    invoke-static {p1, v1}, Les/w40;->readInt2([BI)I

    move-result v0

    iput v0, p0, Les/w40;->k:I

    add-int/lit8 v1, v1, 0x2

    if-eqz v0, :cond_3

    .line 8
    invoke-virtual {p0, p1, v1}, Les/w40;->readBytesWireFormat([BI)I

    move-result p1

    iget v0, p0, Les/w40;->k:I

    if-eq p1, v0, :cond_2

    .line 9
    sget v0, Ljcifs/util/LogStream;->level:I

    if-lt v0, v2, :cond_2

    .line 10
    sget-object v0, Les/w40;->m:Ljcifs/util/LogStream;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "byteCount="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v3, p0, Les/w40;->k:I

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v3, " but readBytesWireFormat returned "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 11
    :cond_2
    iget p1, p0, Les/w40;->k:I

    add-int/2addr v1, p1

    :cond_3
    sub-int/2addr v1, p2

    .line 12
    iput v1, p0, Les/w40;->c:I

    return v1
.end method

.method encode([BI)I
    .locals 4

    .line 1
    invoke-virtual {p0, p1, p2}, Les/w40;->writeHeaderWireFormat([BI)I

    move-result v0

    add-int/2addr v0, p2

    add-int/lit8 v1, v0, 0x1

    .line 2
    invoke-virtual {p0, p1, v1}, Les/w40;->writeParameterWordsWireFormat([BI)I

    move-result v2

    iput v2, p0, Les/w40;->j:I

    .line 3
    div-int/lit8 v3, v2, 0x2

    and-int/lit16 v3, v3, 0xff

    int-to-byte v3, v3

    aput-byte v3, p1, v0

    add-int/2addr v1, v2

    .line 4
    div-int/lit8 v2, v2, 0x2

    iput v2, p0, Les/w40;->j:I

    add-int/lit8 v0, v1, 0x2

    .line 5
    invoke-virtual {p0, p1, v0}, Les/w40;->writeBytesWireFormat([BI)I

    move-result v0

    iput v0, p0, Les/w40;->k:I

    add-int/lit8 v2, v1, 0x1

    and-int/lit16 v3, v0, 0xff

    int-to-byte v3, v3

    .line 6
    aput-byte v3, p1, v1

    add-int/lit8 v1, v2, 0x1

    shr-int/lit8 v3, v0, 0x8

    and-int/lit16 v3, v3, 0xff

    int-to-byte v3, v3

    .line 7
    aput-byte v3, p1, v2

    add-int/2addr v1, v0

    sub-int/2addr v1, p2

    .line 8
    iput v1, p0, Les/w40;->c:I

    return v1
.end method

.method public equals(Ljava/lang/Object;)Z
    .locals 1

    .line 1
    instance-of v0, p1, Les/w40;

    if-eqz v0, :cond_0

    check-cast p1, Les/w40;

    iget p1, p1, Les/w40;->i:I

    iget v0, p0, Les/w40;->i:I

    if-ne p1, v0, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return p1
.end method

.method public hashCode()I
    .locals 1

    .line 1
    iget v0, p0, Les/w40;->i:I

    return v0
.end method

.method abstract readBytesWireFormat([BI)I
.end method

.method readHeaderWireFormat([BI)I
    .locals 2

    add-int/lit8 v0, p2, 0x4

    .line 1
    aget-byte v0, p1, v0

    iput-byte v0, p0, Les/w40;->a:B

    add-int/lit8 v0, p2, 0x5

    .line 2
    invoke-static {p1, v0}, Les/w40;->readInt4([BI)I

    move-result v0

    iput v0, p0, Les/w40;->d:I

    add-int/lit8 v0, p2, 0x9

    .line 3
    aget-byte v1, p1, v0

    iput-byte v1, p0, Les/w40;->b:B

    add-int/lit8 v0, v0, 0x1

    .line 4
    invoke-static {p1, v0}, Les/w40;->readInt2([BI)I

    move-result v0

    iput v0, p0, Les/w40;->e:I

    add-int/lit8 p2, p2, 0x18

    .line 5
    invoke-static {p1, p2}, Les/w40;->readInt2([BI)I

    move-result v0

    iput v0, p0, Les/w40;->f:I

    add-int/lit8 v0, p2, 0x2

    .line 6
    invoke-static {p1, v0}, Les/w40;->readInt2([BI)I

    move-result v0

    iput v0, p0, Les/w40;->g:I

    add-int/lit8 v0, p2, 0x4

    .line 7
    invoke-static {p1, v0}, Les/w40;->readInt2([BI)I

    move-result v0

    iput v0, p0, Les/w40;->h:I

    add-int/lit8 p2, p2, 0x6

    .line 8
    invoke-static {p1, p2}, Les/w40;->readInt2([BI)I

    move-result p1

    iput p1, p0, Les/w40;->i:I

    const/16 p1, 0x20

    return p1
.end method

.method abstract readParameterWordsWireFormat([BI)I
.end method

.method public toString()Ljava/lang/String;
    .locals 4

    .line 1
    new-instance v0, Ljava/lang/String;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "command="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v2, "SMB_COM_NEGOTIATE"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v2, ",errorCode="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v2, p0, Les/w40;->d:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v2, ",flags=0x"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-byte v2, p0, Les/w40;->b:B

    and-int/lit16 v2, v2, 0xff

    const/4 v3, 0x4

    .line 2
    invoke-static {v2, v3}, Ljcifs/util/Hexdump;->toHexString(II)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v2, ",flags2=0x"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v2, p0, Les/w40;->e:I

    .line 3
    invoke-static {v2, v3}, Ljcifs/util/Hexdump;->toHexString(II)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v2, ",signSeq="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v2, p0, Les/w40;->l:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v2, ",tid="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v2, p0, Les/w40;->f:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v2, ",pid="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v2, p0, Les/w40;->g:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v2, ",uid="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v2, p0, Les/w40;->h:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v2, ",mid="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v2, p0, Les/w40;->i:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v2, ",wordCount="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v2, p0, Les/w40;->j:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v2, ",byteCount="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v2, p0, Les/w40;->k:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/String;-><init>(Ljava/lang/String;)V

    return-object v0
.end method

.method abstract writeBytesWireFormat([BI)I
.end method

.method writeHeaderWireFormat([BI)I
    .locals 3

    .line 1
    sget-object v0, Les/w40;->n:[B

    array-length v1, v0

    const/4 v2, 0x0

    invoke-static {v0, v2, p1, p2, v1}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    add-int/lit8 v0, p2, 0x4

    .line 2
    iget-byte v1, p0, Les/w40;->a:B

    aput-byte v1, p1, v0

    add-int/lit8 v0, p2, 0x9

    .line 3
    iget-byte v1, p0, Les/w40;->b:B

    aput-byte v1, p1, v0

    .line 4
    iget v1, p0, Les/w40;->e:I

    int-to-long v1, v1

    add-int/lit8 v0, v0, 0x1

    invoke-static {v1, v2, p1, v0}, Les/w40;->writeInt2(J[BI)V

    add-int/lit8 p2, p2, 0x18

    .line 5
    iget v0, p0, Les/w40;->f:I

    int-to-long v0, v0

    invoke-static {v0, v1, p1, p2}, Les/w40;->writeInt2(J[BI)V

    .line 6
    iget v0, p0, Les/w40;->g:I

    int-to-long v0, v0

    add-int/lit8 v2, p2, 0x2

    invoke-static {v0, v1, p1, v2}, Les/w40;->writeInt2(J[BI)V

    .line 7
    iget v0, p0, Les/w40;->h:I

    int-to-long v0, v0

    add-int/lit8 v2, p2, 0x4

    invoke-static {v0, v1, p1, v2}, Les/w40;->writeInt2(J[BI)V

    .line 8
    iget v0, p0, Les/w40;->i:I

    int-to-long v0, v0

    add-int/lit8 p2, p2, 0x6

    invoke-static {v0, v1, p1, p2}, Les/w40;->writeInt2(J[BI)V

    const/16 p1, 0x20

    return p1
.end method

.method abstract writeParameterWordsWireFormat([BI)I
.end method
